package cn.tedu;

import javax.swing.*;

public class MyFrame extends JFrame {
    int height=1920;
    int width=1080;


    public MyFrame(){
        this.setTitle("a simple frame");
        this.setSize(height,width);

        MyPanel myPanel = new MyPanel();
        this.add(myPanel);

        this.setVisible(true);
        this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        myPanel.action();
    }

}
